package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_inv_info database table.
 * 
 */
@Entity
@Table(name="bme_inv_info")
@NamedQuery(name="BmeInvInfo.findAll", query="SELECT b FROM BmeInvInfo b")
public class BmeInvInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;


	@Column(name="INV_ID")
	private String invId;
	
	private BigDecimal amount;

	@Column(name="CONT_NAME")
	private String contName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	@Column(name="CUST_NAME")
	private String custName;

	@Column(name="INV_AMOUNT")
	private BigDecimal invAmount;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="INV_DATE")
	private Date invDate;

	private String operator;

	@Column(name="PAY_AMOUNT")
	private BigDecimal payAmount;

	
	private String remarks;
	
	@Column(name="INV_PERCENT")
	private String invPercent;

	private String status;

	//bi-directional many-to-one association to BmeContract
	@ManyToOne
	@JoinColumn(name="CONT_ID")
	private BmeContract bmeContract;

	//bi-directional many-to-one association to BmePayroll
	@ManyToOne
	@JoinColumn(name="PAY_ID")
	private BmePayroll bmePayroll;

	public BmeInvInfo() {
	}

	
	public String getInvPercent() {
		return invPercent;
	}


	public void setInvPercent(String invPercent) {
		this.invPercent = invPercent;
	}


	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getContName() {
		return this.contName;
	}

	public void setContName(String contName) {
		this.contName = contName;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCustName() {
		return this.custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public BigDecimal getInvAmount() {
		return this.invAmount;
	}

	public void setInvAmount(BigDecimal invAmount) {
		this.invAmount = invAmount;
	}

	public Date getInvDate() {
		return this.invDate;
	}

	public void setInvDate(Date invDate) {
		this.invDate = invDate;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public BigDecimal getPayAmount() {
		return this.payAmount;
	}

	public void setPayAmount(BigDecimal payAmount) {
		this.payAmount = payAmount;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BmeContract getBmeContract() {
		return this.bmeContract;
	}

	public void setBmeContract(BmeContract bmeContract) {
		this.bmeContract = bmeContract;
	}

	public BmePayroll getBmePayroll() {
		return this.bmePayroll;
	}

	public void setBmePayroll(BmePayroll bmePayroll) {
		this.bmePayroll = bmePayroll;
	}

	public String getInvId() {
		return invId;
	}

	public void setInvId(String invId) {
		this.invId = invId;
	}
}